package day8;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Square {
    public static void main(String[] args) {
        //打印矩形
        Scanner in=new Scanner(System.in);
        System.out.println("请输入高度：");
        int h=in.nextInt();
        System.out.println("请输入宽度：");
        int w=in.nextInt();
        for (int i = 1; i <=h ; i++) {
            for (int j = 1; j <=w ; j++) {
                System.out.print("* ");
            }
            System.out.println();
        }
    }
}
